package com.jk.garden1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 到访管理表
 */
@Data
@TableName("visitant")
@Document(indexName = "visitant",type = "doc",shards = 5,replicas = 1)
public class VisitantEntity {
    @TableId(type = IdType.AUTO)
    @Id
    @Field(type = FieldType.Integer)
    private Integer id;
    @Field(type = FieldType.Text)
    private String throughcard;//通行卡号
    @Field(type = FieldType.Text)
    private String visitantname;//访客姓名
    @Field(type = FieldType.Text)
    private String visitantphone;//访客手机
    @Field(type = FieldType.Text)
    private String intervieweename;//被访者姓名
    @Field(type = FieldType.Text)
    private String signintime;//签到时间
    @Field(type = FieldType.Text)
    private String signouttime;//签退时间
    @Field(type = FieldType.Text)
    private String classify;//分类（临时，小程序预约）
}
